import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Demo1 from '@/pages/demo1/index.vue'
import Layout from '@/pages/layout.vue'

Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/demo1',
      name: 'demo1',
      component: Demo1
    },
    {
      path: '/',
      name: 'layout',
      component: Layout
    },

  ]
})
